package com.qdu.program.serviceImpl;

import com.qdu.program.entity.Collections;
import com.qdu.program.mapper.CollectionsMapper;
import com.qdu.program.service.CollectionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectionsServiceImpl implements CollectionsService {
    @Autowired
    CollectionsMapper collectionsMapper;

    @Override
    public int deleteByPrimaryKey(Integer colId) {
        return collectionsMapper.deleteByPrimaryKey(colId);
    }

    @Override
    public int deleteByUserNumber(String userNumber) {
        return collectionsMapper.deleteByUserNumber(userNumber);
    }

    @Override
    public int deleteByReadId(Integer ReadId) {
        return collectionsMapper.deleteByReadId(ReadId);
    }

    @Override
    public int insert(Collections record) {
        return collectionsMapper.insert(record);
    }

    @Override
    public int insertSelective(Collections record) {
        return collectionsMapper.insertSelective(record);
    }

    @Override
    public Collections selectByPrimaryKey(Integer colId) {
        return collectionsMapper.selectByPrimaryKey(colId);
    }

    @Override
    public int updateByPrimaryKeySelective(Collections record) {
        return collectionsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Collections record) {
        return collectionsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Collections> selectAllCollections(String id) {
        return collectionsMapper.selectAllCollections(id);
    }


}
